package org.tarena.netctoss.dao;

import java.util.List;

import org.tarena.netctoss.entity.Role;
import org.tarena.netctoss.entity.RolePrivilege;
import org.tarena.netctoss.util.MyBatisDao;
import org.tarena.netctoss.vo.Page;

@MyBatisDao
public interface RoleMapperDao {
	public List<Role> findAll();
	public List<Role> findPage(Page page);
	public int addRole(Role role);
	public void addRolePrivilege(RolePrivilege rp);
	public Role findById(int id);
	public List<Integer> findPrivilegeIdByRoleId(int roleId);
	public void updateRole(Role role);
	public void deletePrivilegeByRole(int roleId);
}
